package com.lwc.bean;

import com.lwc.common.crud.IUpdate;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel("套餐")
public class TaoCan {

    @ApiModelProperty("id，修改时不允许为空！")
    @NotNull(message = "id不能为空空", groups = {IUpdate.class})
    int id;

    @ApiModelProperty("套餐名称")
    String name;

    @ApiModelProperty("原价")
    double oldPrice;

    @ApiModelProperty("时长")
    int month;

    @ApiModelProperty("套餐费用 ")
    double money;

}
